package com.ruoyi.hr.controller.hr;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.hr.domain.Departments;
import com.ruoyi.hr.service.CompanysService;
import com.ruoyi.hr.service.DepartmentsService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping("/department")
public class DepartmentController extends BaseController {

    @Autowired
    private JinPengController jinPengController;

    @Autowired
    private DepartmentsService departmentsService;

    @Autowired
    private CompanysService companysService;

    @Autowired
    private CompanyController companyController;

    private String prefix = "hr/department";
    /**
     * 跳转分页页面
     */
    @RequiresPermissions("hr:department:view")
    @GetMapping()
    public String user() {
        return prefix + "/department";
    }
}
